\section{apriori::itemset\_\-container$<$ transaction, collection $>$ Class Template Reference}
\label{classapriori_1_1itemset__container}\index{apriori::itemset_container@{apriori::itemset\_\-container}}
{\tt \#include $<$itemset\_\-container.h$>$}

\subsection*{Public Types}
\begin{CompactItemize}
\item 
typedef \bf{itemset}$<$ transaction, collection $>$ \bf{t\_\-item}\label{classapriori_1_1itemset__container_e191370ce8d7976786e41a07a8a55085}

\item 
typedef transaction::data\_\-ptr \bf{data\_\-ptr}\label{classapriori_1_1itemset__container_48e753b5998ed2757b2b6f7ac65c6d61}

\item 
typedef transaction::data\_\-coll \bf{data\_\-coll}\label{classapriori_1_1itemset__container_9de2153ae181696bef4a85ae407ee062}

\item 
typedef transaction::ptr \bf{trans\_\-ptr}\label{classapriori_1_1itemset__container_d9e184c6e55b791bcf02bd4ebbfd7abc}

\item 
typedef collection$<$ \bf{trans\_\-ptr} $>$ \bf{t\_\-trans\_\-coll}\label{classapriori_1_1itemset__container_f55729e4b3cb1b92008d9427aa8ed337}

\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
\bf{itemset\_\-container} ()\label{classapriori_1_1itemset__container_8574268414215775974cfc09a342601f}

\item 
\bf{$\sim$itemset\_\-container} ()\label{classapriori_1_1itemset__container_5fff77f865cc34aae158f904d4287dc8}

\item 
list$<$ \bf{t\_\-item} $>$ \& \bf{get\_\-items} ()\label{classapriori_1_1itemset__container_45ee50d4db4ee2eef5a204b4069dad94}

\item 
const list$<$ \bf{t\_\-item} $>$ \& \bf{get\_\-items} () const \label{classapriori_1_1itemset__container_2656d8db12a757a0a6889cbd63509a1a}

\item 
void \bf{cut} (int support)
\item 
void \bf{initialize} (const \bf{t\_\-trans\_\-coll} \&coll)
\item 
void \bf{calc\_\-support} (const \bf{t\_\-trans\_\-coll} \&col)
\item 
void \bf{generate} (\bf{t\_\-trans\_\-coll} \&trans)
\item 
template$<$class T$>$ void \bf{write} (T \&t)\label{classapriori_1_1itemset__container_44ab3edc0c821338cb33a57aabadf225}

\end{CompactItemize}


\subsection{Detailed Description}
\subsubsection*{template$<$class transaction, template$<$ class $>$ class collection$>$ class apriori::itemset\_\-container$<$ transaction, collection $>$}

This class implements a collection for the itemsets, and provides several methods for crossproducts of sets for the itemsets. 



Definition at line 25 of file itemset\_\-container.h.

\subsection{Member Function Documentation}
\index{apriori::itemset_container@{apriori::itemset\_\-container}!calc_support@{calc\_\-support}}
\index{calc_support@{calc\_\-support}!apriori::itemset_container@{apriori::itemset\_\-container}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}template$<$class transaction, template$<$ class $>$ class collection$>$ void \bf{apriori::itemset\_\-container}$<$ transaction, collection $>$::calc\_\-support (const \bf{t\_\-trans\_\-coll} \& {\em col})\hspace{0.3cm}{\tt  [inline]}}\label{classapriori_1_1itemset__container_eff4d71c241c3fe7ed970764980a0365}


Calculates the support of each itemset with the transactions in col 

Definition at line 77 of file itemset\_\-container.h.

Referenced by apriori::itemset\_\-container$<$ transaction, collection $>$::generate(), and apriori::itemset\_\-container$<$ transaction, collection $>$::initialize().\index{apriori::itemset_container@{apriori::itemset\_\-container}!cut@{cut}}
\index{cut@{cut}!apriori::itemset_container@{apriori::itemset\_\-container}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}template$<$class transaction, template$<$ class $>$ class collection$>$ void \bf{apriori::itemset\_\-container}$<$ transaction, collection $>$::cut (int {\em support})\hspace{0.3cm}{\tt  [inline]}}\label{classapriori_1_1itemset__container_56b36f5197bfc25970daa509bbff6660}


deletes all itemsets with support $<$ s 

Definition at line 43 of file itemset\_\-container.h.

Referenced by apriori::apriori\_\-alg$<$ transaction, collection $>$::doit().\index{apriori::itemset_container@{apriori::itemset\_\-container}!generate@{generate}}
\index{generate@{generate}!apriori::itemset_container@{apriori::itemset\_\-container}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}template$<$class transaction, template$<$ class $>$ class collection$>$ void \bf{apriori::itemset\_\-container}$<$ transaction, collection $>$::generate (\bf{t\_\-trans\_\-coll} \& {\em trans})\hspace{0.3cm}{\tt  [inline]}}\label{classapriori_1_1itemset__container_8fcb7309a795c46a62217a577201854d}


generates new itemsets with a new cardinality 

Definition at line 89 of file itemset\_\-container.h.

References apriori::itemset\_\-container$<$ transaction, collection $>$::calc\_\-support().

Referenced by apriori::apriori\_\-alg$<$ transaction, collection $>$::doit().

Here is the call graph for this function:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=249pt]{classapriori_1_1itemset__container_8fcb7309a795c46a62217a577201854d_cgraph}
\end{center}
\end{figure}
\index{apriori::itemset_container@{apriori::itemset\_\-container}!initialize@{initialize}}
\index{initialize@{initialize}!apriori::itemset_container@{apriori::itemset\_\-container}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}template$<$class transaction, template$<$ class $>$ class collection$>$ void \bf{apriori::itemset\_\-container}$<$ transaction, collection $>$::initialize (const \bf{t\_\-trans\_\-coll} \& {\em coll})\hspace{0.3cm}{\tt  [inline]}}\label{classapriori_1_1itemset__container_4a2d413c6ae41087928db883c4e03ac6}


Creates the initial unique itemsets 

Definition at line 59 of file itemset\_\-container.h.

References apriori::itemset\_\-container$<$ transaction, collection $>$::calc\_\-support().

Referenced by apriori::apriori\_\-alg$<$ transaction, collection $>$::doit().

Here is the call graph for this function:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=247pt]{classapriori_1_1itemset__container_4a2d413c6ae41087928db883c4e03ac6_cgraph}
\end{center}
\end{figure}


The documentation for this class was generated from the following file:\begin{CompactItemize}
\item 
Desktop/newapriori/itemset\_\-container.h\end{CompactItemize}
